<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<style>
			.head{
				box-shadow:none;
				background: #3366CC;
			}
			#content{
				background: white;
			}
		</style>
	</head>

	<body>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<header class="mui-bar mui-bar-nav head">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white;"></a>
		    <h1 class="mui-title" style="color: white;">图书管理</h1>
		</header>
		<div class="mui-content">
		    <ul class="mui-table-view mui-grid-view mui-grid-9" id="content">
		    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
		        <a href="#" id="booksearch">
		            <span class="mui-icon mui-icon mui-icon-search"></span>
		            <div class="mui-media-body">查询管理图书</div>
		        </a>
		    </li>
		    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
		        <a href="#" id="addbook">
		            <span class="mui-icon mui-icon mui-icon-plusempty"><span class="mui-badge mui-badge-red">5</span></span>
		            <div class="mui-media-body">图书增加</div>
		        </a>
		    </li>
		    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
		        <a href="#" id="renturnbook">
		            <span class="mui-icon mui-icon mui-icon-loop"></span>
		            <div class="mui-media-body">图书借还管理</div>
		        </a>
		    </li>
		        </ul>
		    
		</div>
	</body>
	<script>
		
		//tap为mui封装的单击事件，可参考手势事件章节
		document.getElementById('booksearch').addEventListener('tap', function() {
		  //打开查询图书管理页面
		  mui.openWindow({
		    url: 'search.html', 
		    id:'search'
		  });
		});
		document.getElementById('addbook').addEventListener('tap', function() {
		  //打开图书增加
		  mui.openWindow({
		    url: 'addbook.html', 
		    id:'addbook'
		  });
		});
		document.getElementById('renturnbook').addEventListener('tap', function() {
		  //打开归还
		  mui.openWindow({
		    url: 'renturnbook.html', 
		    id:'renturnbook'
		  });
		});
		
	</script>

</html>